package com.cartoonrabbit.wxapp.utils;

public class WxappRequestContextPath {

    // 获取openid和session_key的接口
    public static final String AUTH_CODE_SESSION="/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    /**
     * Native下单
     * 请求URL：https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
     */
    public static final String NATIVE_PAY="/v3/pay/transactions/jsapi";

    /**
     * 查询订单
     * https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
     */
    public static final String ORDER_QUERY_BY_NO="/v3/pay/transactions/out-trade-no/%s";

    /**
     * 关闭订单
     * https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}/close
     */
    public static final String CLOSE_ORDER_BY_NO="/v3/pay/transactions/out-trade-no/%s/close";

    /**
     * 申请退款
     * https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
     */
    public static final String DOMESTIC_REFUNDS ="/v3/refund/domestic/refunds";

    /**
     * 查询单笔退款
     * https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no}
     */
    public static final String DOMESTIC_REFUNDS_QUERY= "/v3/refund/domestic/refunds/%s";

    /**
     * 申请交易账单
     *https://api.mch.weixin.qq.com/v3/bill/tradebill
     */
    public static final String TRADE_BILLS="/v3/bill/tradebill";

    /**
     * 申请资金账单
     * https://api.mch.weixin.qq.com/v3/bill/fundflowbill
     */
    public static final String FUND_FLOW_BILLS="/v3/bill/fundflowbill";

    /**
     * 支付结果通知
     */
    /**
     * 退款结果通知
     */
}
